package kuzmenkov.oip.model.dao.hibernate;

import kuzmenkov.oip.model.Parameter;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * Interface describes accessing to the database table "parameter"
 * User: Michael Kuzmenkov
 * Date: 16.03.2009
 * Time: 3:47:52
 */
public interface ParameterDao extends GenericDao<Parameter, Long> {
    /**
     * Finds parameters which belong to a given module.
     * Result is ordered by param positions 
     * @param moduleId id of the module which owns needed parameters
     * @return
     * @throws DataAccessException
     */
    List<Parameter> findByModule (Long moduleId) throws DataAccessException ;

}